package com.dsg.service.approve.impl;

import com.dsg.dao.approve.DsgApproveNodeMapper;
import com.dsg.entity.apply.DsgApplyBill;
import com.dsg.entity.approve.DsgApproveNode;
import com.dsg.service.DsgServiceImpl;
import com.dsg.service.approve.IDsgApproveNodeService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 節點配置表 服务实现类
 * </p>
 *
 * @author system
 * @since 2020-07-04
 */
@Service
public class DsgApproveNodeServiceImpl extends DsgServiceImpl<DsgApproveNodeMapper, DsgApproveNode> implements IDsgApproveNodeService {

    @Override
    public DsgApproveNode getBeginNode(DsgApplyBill bill) {
        return baseMapper.getBeginNode(bill);
    }

    @Override
    public DsgApproveNode getNodeByCase(String caseOid) {
        return baseMapper.getNodeByCase(caseOid);
    }

    public DsgApproveNode getNode(String appNo, String nodeName) {
        return baseMapper.getNode(appNo, nodeName);
    }
}
